package test.administrator.example.com.mvptest1;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import test.administrator.example.com.mvptest1.demo.LoginParcelableViewState;
import test.administrator.example.com.mvptest1.framework.support.viewstate.lce.LceViewState;
import test.administrator.example.com.mvptest1.framework.support.viewstate.lce.activity.MvpLceViewStateActivity;
import test.administrator.example.com.mvptest1.login.LoginModel;
import test.administrator.example.com.mvptest1.login.LoginPresenter;
import test.administrator.example.com.mvptest1.login.LoginView;

/**
 * Created by thinkpad on 2018/8/13.
 */

public class LoginLceViewStateActivity extends MvpLceViewStateActivity<LoginModel, LoginView<LoginModel>, LoginPresenter> {

	@Override
	protected void onCreate(@Nullable Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public LoginPresenter createPresenter() {
		return new LoginPresenter();
	}

	@NonNull
	@Override
	public LceViewState<LoginModel, LoginView<LoginModel>> createViewState() {
		return new LoginParcelableViewState();
	}

	@Override
	public LoginModel getData() {
		return null;
	}

}
